package com.prp.db.idao;

import java.util.List;

import com.prp.db.po.SearchRecord;

public interface ISearchRecordDAO {
	public void save(SearchRecord transientInstance);

	public void delete(SearchRecord persistentInstance);

	public SearchRecord findById(java.lang.Integer id);

	public List findByExample(SearchRecord instance);

	public List findByProperty(String propertyName, Object value);

	public List findBySearchFreq(Object searchFreq);

	public List findByUserIdCatetoryId(Object userId, Object categoryId);
	
	public List findAll();

	public SearchRecord merge(SearchRecord detachedInstance);

	public void attachDirty(SearchRecord instance);

	public void attachClean(SearchRecord instance);

	public List findBySearchUserId(int userId);

}
